package org.dromara.basic.domain.bo;

import org.dromara.basic.domain.Member;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 成员信息表业务对象 phy_member_info
 *
 * @author chl
 * @date 2024-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Member.class, reverseConvertGenerate = false)
public class MemberBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long memberId;

    /**
     * 工号或者学号
     */
//    @NotBlank(message = "工号或者学号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idNumber;

    /**
     * 名字
     */
//    @NotBlank(message = "名字不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 性别
     */
//    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gender;

    /**
     * 民族
     */
//    @NotBlank(message = "民族不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ethnicity;

    /**
     * 年龄
     */
    private Long age;

    /**
     * 手机号码
     */
//    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phoneNumber;

    /**
     * 年级
     */
    private String years;


    /**
     * 班级
     */
    private Long classId;


    /**
     * 学院
     */
//    @NotBlank(message = "学院不能为空", groups = { AddGroup.class, EditGroup.class })
    private String college;


    /**
     * 身份证号
     */
    private String idCardNumber;

    /**
     * 住址
     */
    private String address;


    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 租户id
     */
    private String tenantId;

    /**
     * 租户id
     */
    private String className;
    private String professionalId;
    private String collegeId;

    private List<Long> classIdList;
    private List<Long> collegeList;
    private List<String> yearsList;

    private String fileType;

    private String faceImage;

    private String grade;
}
